package cn.raven.system.mapper;

import cn.raven.basic.mapper.BaseMapper;
import cn.raven.system.domain.Permission;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author Raven
 * @since 2022-07-11
 */
public interface PermissionMapper extends BaseMapper<Permission> {
    //根据sn查询
    Permission loadBySn(String permissionSn);
    //根据logininfo查询所拥有的权限
    List<String> findOwnPermissionByLogininfoId(Long id);
    //查找权限
    List<Permission> findByPermission(Long id);
}
